package com.krisyu.strategyPattern.sp_practice1;

/**
 * @author KrisYu
 * @date 2022/5/23
 * @description
 */
public abstract class PushStrategyDecorate implements IPushStrategy{
    private IPushStrategy iPushStrategy = null;

    public PushStrategyDecorate(IPushStrategy iPushStrategy){
        this.iPushStrategy = iPushStrategy;
    }

    @Override
    public void beforePush() {
        this.iPushStrategy.beforePush();
    }

    @Override
    public void doPush() {
        this.iPushStrategy.doPush();
    }

    @Override
    public void afterPush() {
        this.iPushStrategy.afterPush();
    }
}
